import { ApiProperty } from '@nestjs/swagger'

import { IsOptional, IsString } from 'class-validator'
import { OperatorDto } from '~/common/dto/operator.dto'

export class IotEventDto extends OperatorDto {
  @ApiProperty({ description: '事件' })
  @IsString()
  event: string

  @ApiProperty({ description: '参数' })
  @IsOptional()
  params: any
}
